import React from 'react';
import { Form } from 'antd';
import { AxAdvancedSearch } from '@/components/AxForm/AxSearchForm/AxAdvancedSearch';
import { AxInput } from '@/components/AxForm/AxFormItem/AxInput';
import { AxSelectEnum } from '@/components/AxForm/AxFormItem/AxSelect/AxSelectEnum';
import { axhttp } from '@/shared/axhttp';

const Search: React.FC<any> = props => {
    const { form, values } = props;

    return (
        <AxAdvancedSearch
            {...props}
            items={[
                <AxInput form={form} label="姓名" field="name" value={values.name} />,
                <AxInput form={form} label="身份证" field="idcard" value={values.idcard} />,
                <AxInput form={form} label="标题" field="title" value={values.title} />,
                <AxInput form={form} label="内容" field="description" value={values.description} />,
                <AxSelectEnum
                    form={form}
                    label="流程状态"
                    field="workFlowState"
                    enumName="workFlowState"
                    // mode="multiple"
                    value={values.workFlowState}
                />,
                <AxSelectEnum
                    form={form}
                    label="流程类型"
                    field="WorkFlowType"
                    enumName="WorkFlowType"
                    // mode="multiple"
                    value={values.WorkFlowType}
                />,
            ]}
        />
    );
};

export default Form.create()(Search);
